import { sidebar } from "vuepress-theme-hope";

export default sidebar({
  "/": [
    "",
    {
      text: "如何使用",
      icon: "laptop-code",
      prefix: "parameter/",
      link: "parameter/",
      children: "structure",
    },
    {
      text: "文章",
      icon: "book",
      prefix: "posts/",
      children: "structure",
    },
    "intro",
    {
      text: '关于',
      icon: 'info',
      prefix: 'about/',
      link: '/about',
      children: 'structure',
    },
  ],

  "/parameter/":[
     {
      text: '返回',
      icon: 'sort',
      link: '/',
    },
    {
      text: "文章",
      icon: "book",
      prefix: "/parameter/",
      children: "structure",
    },
  ],
  '/about/': [
    {
      text: '返回',
      icon: 'sort',
      link: '/',
    },
    {
      text: '关于',
      icon: 'info',
      prefix: '',
      link: '/about/',
      children: 'structure',
    },
  ],
  '/API/': [
    {
      text: '返回',
      icon: 'sort',
      link: '/',
    },
    {
      text: 'API测试',
      icon: 'ceshi',
      prefix: '',
      link: '/API/',
      children: 'structure',
    },
  ],
  '/favorite/': [
    {
      text: '返回',
      icon: 'sort',
      link: '/',
    },
    {
      text: '链接',
      icon: 'link',
      prefix: 'links/',
      children: 'structure',
      link: '/favorite/links/',
    },
    {
      text: '工具',
      icon: 'tool',
      prefix: 'tool/',
      children: 'structure',
      link: '/favorite/tool/',
    },
  ],
  '/posts/':[
    {
      text: '返回',
      icon: 'sort',
      link: '/',
    },
    {
      text: '博文',
      icon: 'info',
      link: '/posts/',
      children: 'structure',
    },
  ]
});
